﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Framework.Mvc.AgencyContactCreateViewModel>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="TitleContent" runat="server">
    经销商联系人创建
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%using (Html.BeginForm())
      {
    %>
    <%if (Model.Instance == null)
      {
    %>
    联系人姓名:<%: Html.TextBoxFor(m => m.Instance.Name) %><br />
    联系人电话:<%: Html.TextBoxFor(m => m.Instance.Phone) %><br />
    联系人手机:<%: Html.TextBoxFor(m => m.Instance.Mobile) %><br />
    联系人QQ:<%: Html.TextBoxFor(m => m.Instance.QQ) %><br />
    联系人MSN:<%: Html.TextBoxFor(m => m.Instance.MSN) %><br />
    联系人Email:<%: Html.TextBoxFor(m => m.Instance.Email) %><br />
    联系人传真:<%: Html.TextBoxFor(m => m.Instance.Fax) %><br />
    <input type="submit" value="提交" />
    <%
      }
      else
      {
    %>
    <table>
        <tr>
            <th>
                联系人姓名
            </th>
            <th>
                修改联系人
            </th>
            <th>
                删除联系人
            </th>
        </tr>
        <tr>
            <td>
                <%=Model.Instance.Name %>
            </td>
            <td>
                <%: Html.ActionLink("修改", "Edit", new { identity = Model.Instance.Id})%>
            </td>
            <td>
                <%: Html.ActionLink("删除", "Delete", new { identity = Model.Instance.Id})%>
            </td>
        </tr>
    </table>
    <%
      } %>
    <%
      }
    %>
</asp:Content>
